
<!-- saved from url=(0054)http://www.phpsir.com/devtxt/bonus_by_print_phpsir.htm -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"></head><body>{include file="pageheader.htm"}
<div class="main-div">
<form action="bonus.php" method="post" name="theForm" enctype="multipart/form-data" onSubmit="return validate()">
<table width="100%">
  <tbody><tr>
    <td class="label">{$lang.bonus_type_id}</td>
    <td>
    <select name="bonus_type_id">
      {html_options options=$type_list selected=$smarty.get.id}
    </select>
    </td>
  </tr>
   <tr>
      <td class="label">{$lang.send_bonus_count}</td>
      <td>
      <input type="text" name="bonus_sum" size="30" maxlength="6">
      </td>
    </tr>
   <tr>
      <td class="label">礼品卡激活码前缀</td>
      <td>
      <input type="text" name="bonus_prefix" size="30" maxlength="6">
      </td>
    </tr>
    <tr><td class="label">&nbsp;</td>
    <td></td>
   </tr>
   <tr>
      <td class="label">礼品卡编号前缀</td>
      <td>
      <input type="text" name="serial_prefix" size="30" maxlength="6">
      </td>
    </tr>
    <tr><td class="label">&nbsp;</td>
    <td></td>
   </tr>   
   <tr>
   <td class="label">&nbsp;</td>
   <td>
    <input type="submit" value="{$lang.button_submit}" class="button">
    <input type="reset" value="{$lang.button_reset}" class="button">
  </td>
 </tr>

</tbody></table>
<input type="hidden" name="act" value="send_by_print_phpsir">
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['bonus_sum'].focus();
/**
 * æ£€æŸ¥è¡¨å•è¾“å…¥çš„æ•°æ®
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("bonus_type_id",   bonus_type_empty);
    validator.required("bonus_sum",   bonus_sum_empty);
    validator.isNumber("bonus_sum",   bonus_sum_number, true);
    return validator.passed();
}

onload = function()
{
    // å¼€å§‹æ£€æŸ¥è®¢å?
    startCheckOrder();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}
</body></html>